import Vue from 'vue'
import App from './App'
import api from '@/uni_modules/vmeitime-http/' //请求拦截
import store from './store/index.js' //vuex
Vue.prototype.$store = store
Vue.prototype.$api = api
Vue.config.productionTip = false

Vue.prototype.ScanAudio = function(src) {
	var music = null;
	music = uni.createInnerAudioContext(); //创建播放器对象
	music.src = src;
	music.play(); //执行播放
	music.onEnded(() => {
		//播放结束
		music = null;
	});
}

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
